import request from "@/utils/request";
import store from "@/store/index";

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    };
    Object.assign(data, token);
    return data;
}

export function SelfTestAdd(data) {
    return request({
        url: "/location_url/user/selftest.users/SelfTestAdd",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function SelfTestEdit(data) {
    return request({
        url: "/location_url/user/selftest.users/SelfTestEdit",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function SelfTestAddAnswer(data) {
    return request({
        url: "/location_url/user/selftest.users/SelfTestAddAnswer",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function SelfTestAnalysis(data) {
    return request({
        url: "/location_url/user/selftest.users/SelfTestAnalysis",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function SelfTestPresentationDetail(data) {
    return request({
        url: "/location_url/user/selftest.users/SelfTestPresentationDetail",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
export function SelfTestErrorAnalysis(data) {
    return request({
        url: "/location_url/user/selftest.users/SelfTestErrorAnalysis",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
